import request from '@/utils/request'

export function yonghu(params) {
  return request({
    url: '/admin/role/list',
    method: 'get',
    params
  })
}


export function xz(data) {
  return request({
    url: '/admin/role/create',
    method: 'post',
    data
  })
}

export function gx(data) {
  return request({
    url: '/admin/role/update',
    method: 'post',
    data
  })
}
export function sc(data) {
  return request({
    url: '/admin/role/delete',
    method: 'post',
    data
  })
}

export function sq(params) {
  return request({
    url: '/admin/role/permissions',
    method: 'get',
    params
  })
}
export function sq2(data) {
  return request({
    url: '/admin/role/permissions',
    method: 'post',
    data
  })
}
